/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import type { Reducer } from 'umi';

export interface YzInfoVerifyStateType {
  pagination: Record<string, { page: number; pageSize: number }>;
}

export interface YzInfoVerifyModelType {
  namespace: string;
  state: YzInfoVerifyStateType;
  reducers: {
    save: Reducer<YzInfoVerifyStateType>;
  };
}

const Model: YzInfoVerifyModelType = {
  namespace: 'yzInfoVerify',

  state: {
    pagination: {},
  },

  reducers: {
    save(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};

export default Model;
